import { http } from '@/utils/http'
import type {Message,User} from '/@/types/member'

export const getMessage = (id:string) => {
    return http<Message[]>({
        method: 'GET',
        url: `/app/message/${id}`,
    })
}

export const updateUser=(user?:User)=>
{
	return http(
	{
		method:'PUT',
		url:`/app/user/update`,
		data:user
	})
	
}